n = int(input())
a = list(map(int, input().split()))
ans = 1
Max = a[0]
for i in range(1, n):
    if a[i] > Max:
        ans += 1
        Max = a[i]

print(ans)
